<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<style type="text/css">
.tb {
	border: 1px solid blue;
	border-collapse: collapse;
}

.tb th {
	border: 1px solid blue;
}

.tb td {
	border: 1px solid blue;
}
</style>

</head>

<body>
	<%
		request.setCharacterEncoding("utf-8");
		String[] hobbies = request.getParameterValues("hobby");
		String hbs = "";
		if (hobbies != null) {
			for (String hb : hobbies) {
				hbs += hb + " ";
			}
		}
	%>
	<table class="tb" align="center">
		<tr>
			<th>姓名</th>
			<th>口令</th>
			<th>性别</th>
			<th>出生日期</th>
			<th>专业</th>
			<th>爱好</th>
			<th>其他</th>
		</tr>
		<tr>
			<td><%=request.getParameter("username")%></td>

			<td><%=request.getParameter("password")%></td>

			<td><%=request.getParameter("sex")%></td>
			<td><%=request.getParameter("birthday")%></td>
			<td><%=request.getParameter("major")%></td>
			<td><%=hbs%></td>
			<td><%=request.getParameter("other")%></td>
		</tr>

	</table>
</body>
</html>
